#include <stdio.h>
int main()
{	 	 	   
    int x, y, z, count = 0;

    for (x = 0; x <= 5; x++) //1
    {	 	 	   
        for (y = 0; y <= 10; y++) //1
        {	 	 	   
            z = 50 - x - y;//1
            if (10 * x + 5 * y + z == 100) //2
            {	 	 	   
                count++;    //1
                printf("x = %d, y = %d, z = %d\n", x, y, z);
            }
        }
    }

    printf("count = %d\n", count);//1

    return 0;
}